﻿<UserControl x:Class="Islamic_influence_in_Venetian_cuture.View.UserControls.InfluenceMenuPivotElement"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:util="clr-namespace:Islamic_influence_in_Venetian_cuture"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    
    <!--<phone:PhoneApplicationPage.Resources>
        <util:TextAlignmentConverter x:Key="TextAlignmentConverter" />
    </phone:PhoneApplicationPage.Resources>-->
    
    <Grid x:Name="LayoutRoot">
        <ListBox Name="Arguments" ItemsSource="{Binding}" SelectionMode="Single" SelectionChanged="Arguments_SelectionChanged">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Path=TheValue, Mode=OneWay}" Width="480" Height="Auto" Visibility="Visible" FontSize="48" TextAlignment="{Binding Culture, Converter={StaticResource TextAlignmentConverter}}" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
